<!doctype html>
<html>
<head>
    <meta charset="utf-8"/>
</head>
<body>
<button value='1' id="a">one</button>
<button id="b">two</button>
<script>
    alert(document.getElementById('a').value);
    alert(document.getElementById('b').value);
</script>
</body>
</html>